import request from '@/utils/request'

// 查询订单-集装箱信息列表
export function listContainer(query) {
  return request({
    url: '/system/order/container/list',
    method: 'get',
    params: query
  })
}

// 查询订单-集装箱信息详细
export function getContainer(orderContainerId) {
  return request({
    url: '/system/order/container/' + orderContainerId,
    method: 'get'
  })
}

// 新增订单-集装箱信息
export function addContainer(data) {
  return request({
    url: '/system/order/container',
    method: 'post',
    data: data
  })
}

// 修改订单-集装箱信息
export function updateContainer(data) {
  return request({
    url: '/system/order/container',
    method: 'put',
    data: data
  })
}

// 删除订单-集装箱信息
export function delContainer(orderContainerId) {
  return request({
    url: '/system/order/container/' + orderContainerId,
    method: 'delete'
  })
}
